home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
ddj9304.zip
/
OS2WPS.ZIP
/
UNINST.C
< prev
next >
Wrap
Text File
|
1992-10-22
|
865b
|
31 lines
// uninstall.c -- uninstall program
//
// compile and link with: icc /Ss /Ti uninst.c
#define INCL_WINWORKPLACE
#include <os2.h>
int main ( int argc, char *argv[] )
{
HAB hab; // anchor block
HOBJECT hobjFolder; // folder object
HOBJECT hobjProg; // program object
BOOL fSuccess; // return from API
// create an anchor block so we can retrieve errors
hab = WinInitialize ( 0 );
// unregister our object class for our data files
fSuccess = WinDeregisterObjectClass ( "WPSpread" );
if ( fSuccess == FALSE )
{
ULONG ul; // error code
ul = WinGetLastError ( hab );
printf ("Unable to deregister class, error = %x\n",
ERRORIDERROR ( ul ) );
}
WinTerminate ( hab );
}